package com.hoo.entity.order;

import java.util.Date;
import javax.persistence.Entity;
import org.apache.ibatis.type.Alias;
import com.hoo.common.constant.Constant;
import com.hoo.util.DateUtils;

@Entity
@Alias("ticketOrder")
public class TicketOrder {
	private int id;
	private int ticketTypeId;
	private Date orderTime;
	private Float orderPrice;
	private String scheduleNum;
	private int orderStatus;
	private Date visitTime;
	private int internetTrading;
	private int groupTicket;
	private String linkmanID;
	private String linkmanPhone;
	private String linkmanName;
	private int ticketCount;
	private String orderTimeStr;
	private String visitTimeStr;
	private Date takeOrderTime;
	private int takeOrderStatus;
	private String takeOrderTimeStr;
	private String orderNo;
	private String ticketNo;
	
	
	public String getTicketNo() {
		return ticketNo;
	}
	public void setTicketNo(String ticketNo) {
		this.ticketNo = ticketNo;
	}
	public int getTakeOrderStatus() {
		return takeOrderStatus;
	}
	public void setTakeOrderStatus(int takeOrderStatus) {
		this.takeOrderStatus = takeOrderStatus;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public Date getTakeOrderTime() {
		return takeOrderTime;
	}
	public void setTakeOrderTime(Date takeOrderTime) {
		this.takeOrderTime = takeOrderTime;
		this.takeOrderTimeStr = takeOrderTime != null ? DateUtils.getDateString(takeOrderTime, Constant.DATE_FORMAT_LONG_ONE) : "";
	}
	public String getTakeOrderTimeStr() {
		return takeOrderTimeStr;
	}
	public void setTakeOrderTimeStr(String takeOrderTimeStr) {
		this.takeOrderTimeStr = takeOrderTimeStr;
	}
	public String getOrderTimeStr() {
		return orderTimeStr;
	}
	public void setOrderTimeStr(String orderTimeStr) {
		this.orderTimeStr = orderTimeStr;
	}
	public String getVisitTimeStr() {
		return visitTimeStr;
	}
	public void setVisitTimeStr(String visitTimeStr) {
		this.visitTimeStr = visitTimeStr;
	}
	public int getTicketCount() {
		return ticketCount;
	}
	public void setTicketCount(int ticketCount) {
		this.ticketCount = ticketCount;
	}
	public String getLinkmanID() {
		return linkmanID;
	}
	public void setLinkmanID(String linkmanID) {
		this.linkmanID = linkmanID;
	}
	public String getLinkmanPhone() {
		return linkmanPhone;
	}
	public void setLinkmanPhone(String linkmanPhone) {
		this.linkmanPhone = linkmanPhone;
	}
	public String getLinkmanName() {
		return linkmanName;
	}
	public void setLinkmanName(String linkmanName) {
		this.linkmanName = linkmanName;
	}
	public Float getOrderPrice() {
		return orderPrice;
	}
	public void setOrderPrice(Float orderPrice) {
		this.orderPrice = orderPrice;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getTicketTypeId() {
		return ticketTypeId;
	}
	public void setTicketTypeId(int ticketTypeId) {
		this.ticketTypeId = ticketTypeId;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
		this.orderTimeStr = orderTime != null ? DateUtils.getDateString(orderTime, Constant.DATE_FORMAT_LONG_ONE) : "";
	}
	public String getScheduleNum() {
		return scheduleNum;
	}
	public void setScheduleNum(String scheduleNum) {
		this.scheduleNum = scheduleNum;
	}
	public int getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(int orderStatus) {
		this.orderStatus = orderStatus;
	}
	public Date getVisitTime() {
		return visitTime;
	}
	public void setVisitTime(Date visitTime) {
		this.visitTime = visitTime;
		this.visitTimeStr = visitTime != null ? DateUtils.getDateString(orderTime, Constant.DATE_FORMAT_SIMPLE) : "";
	}

	public int getInternetTrading() {
		return internetTrading;
	}
	public void setInternetTrading(int internetTrading) {
		this.internetTrading = internetTrading;
	}
	public int getGroupTicket() {
		return groupTicket;
	}
	public void setGroupTicket(int groupTicket) {
		this.groupTicket = groupTicket;
	}
	
}
